package com.xssweibo.base;

import java.io.Serializable;

import org.json.JSONException;
import org.json.JSONObject;

public class RetweetDetails implements Serializable {

    private long retweetId;
    private String retweetedAt;
    private User retweetingUser;
	private static final long serialVersionUID = 7707447341095206439L;
    RetweetDetails(JSONObject json) throws WeiboException {
        init(json);
    }
  
    public long getRetweetId() {
        return retweetId;
    }

    public String getRetweetedAt() {
        return retweetedAt;
    }

    public User getRetweetingUser() {
        return retweetingUser;
    }

    private void init(JSONObject json) throws WeiboException{
/*    	try {
    		retweetId = json.getInt("retweetId");
    		retweetedAt = json.getString("retweetedAt");
    		retweetingUser=new User(json.getJSONObject("retweetingUser"));
            
        } catch (JSONException jsone) {
            throw new WeiboException(jsone.getMessage() + ":" + json.toString(), jsone);
        }*/
	}
    
}
